import request from "@/utils/request";

// 获取页面
export function getList(params) {
  return request({
    url: "/admin/order/list",
    method: "get",
    params,
  });
}
// 详情
export function detailsList(params) {
  return request({
    url: "/admin/order/detail",
    method: "get",
    params,
  });
}
// 删除
export function delList(data) {
  return request({
    url: "admin/order/delete",
    method: "post",
    data: data,
  });
}
// 收款
export function collectionList(data) {
  return request({
    url: "/admin/order/pay",
    method: "post",
    data: data,
  });
}
// 收款
export function shipList(data) {
  return request({
    url: "/admin/order/ship",
    method: "post",
    data: data,
  });
}
// 获取
export function getShipList(params) {
  return request({
    url: "/admin/order/channel",
    method: "get",
    params,
  });
}
// 退货
export function refundList(data) {
  return request({
    url: "/admin/order/refund",
    method: "post",
    data: data,
  });
}
